<template>
  <div>
    <table border="1px solid #000">
      <thead>
        <tr>
          <th>姓名</th>
          <th>地址</th>
          <th>标识</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="item in data" :key="item.id">
          <td>{{ item.name }}</td>
          <td>{{ item.address }}</td>
          <td>
            <slot :row="item">{{ item.tag }}</slot>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</template>
<script>
export default {
  name: 'slot3',
  props: {
    data: {
      type: Array,
      required: true,
      default: () => {
        return []
      }
    }
  }
}
</script>
<style></style>
